fixed undefined error reported to raygun https://github.com/MindscapeHQ/raygun4js/issues/40