Bug 956494 - Ensure dictionary values are constructed before firing DeviceMotionEvent. r=smaug