Bug 841536 - Improve console message on some platform exception with undefined message/name

https://bugzilla.mozilla.org/show_bug.cgi?id=841536