Fix starting ios simulator

Properly handle optional function parameter

fixes http://teampulse.telerik.com/view#item/274056
Merge pull request #96 from NativeScript/totev/fix-ios-emulator

Fix starting ios simulator
Fixed Analytics settings service to accomodate the change in the comnmon lib