Exceptions without a name may get a name extracted out of the message

Some errors on some browsers have no exception name provided by the browser to the error handling code. However the message in some exceptions such as the one in http://sourceforge.net/p/phpmyadmin/bugs/4274/ contains the exception name in the message. This patch tries to extract that name if possible so as to provide a better report to the error reporting server