Camera does not handle NaN gracefully

Currently, the game will hard-freeze if any NaN (nan or +/-infinity) values are supplied to camera. Such values can easily be passed through using the Lua API. This usually is user-error, but the engine should at least gracefully fail with such inputs and not hard-freeze your game.

Easy to reproduce, open console with luap

WARNING: THIS WILL HARD FREEZE YOUR GAME

camera.setYaw( 1 / 0)

A few issues have popped up as a consequence of this:

#7694 (closed)

#8336 (closed)

Edited by Cody Glassman