JsHint: Added code to error messages.
* Rescued from NullReferenceException.
Merge pull request #413 from am11/master

JsHint: Added code to error messages