Fix Quaternion to Euler Bug

Original heading was not tested correctly as NaN.