JsHint: Added code to error messages.
* Rescued from NullReferenceException.