safari realdevice fix

Fixes this: https://github.com/appium/appium/issues/2778, pretty straightforward.
Tested on yosemite.