Fixed updating desired capabilities on Android and iOS devices, fixed server crashes

Now for devices using dynamic desired capabilities instead of hardcoded values.
Also, fixed server crashes on undefined values for Android params 'app-package' and 'app-activity' .