Bug 950809 - Add null check for e.accelerationIncludingGravity. r=johnhu