Added check for NaN to Transition PDF function calls.

If NaN is returned, then an error message will be displayed identifying the position and function that is misbehaving
Merge branch 'development'