Null checks for proxy.js when extracting Session ID, default to blank

https://github.com/appium/appium/issues/2355