Fix starting ios simulator

Properly handle optional function parameter

fixes http://teampulse.telerik.com/view#item/274056