Merge "Make sure that we send the DeviceOrientation error event only once"