Fix for 'chromeOptions'.

Fix for the bugs introduced by https://github.com/appium/appium/commit/570d6beb85cea48c4dd78b6b0089e88437ea0822
and
https://github.com/appium/appium/commit/f8d8e5513e706712eeda349e7d50cf03f3eb7573