fixing 1483

https://github.com/appium/appium/issues/1483

adding a null verification for app