Bugfixes for desired_capabilities updating and for ios_logging

- Fixed bug with updating desired_capabilities
- Fixed server crashes on undefined values for params 'app-package' and 'app-activity'
- Fixed locking on starting ios logging via 'tail -f -n 0'