Minor fix for assert normalized quaternion

The assert raises issue even when the calculation is performed properly,
because the assert checks even before `result` is fully
computed. This has been fixed by simply moving the assert line.
6 jobs for pr/165 in 12 minutes and 59 seconds (queued for 1 second)