Fix command line validation logic
Fix command line validation logic

This prevents "swallowing" of arguments, due to Array.splice()

See http://teampulse.telerik.com/view#item/290977

telerik/mobile-cli-lib,telerik/mobile-cli-lib