bugfix:  modx.console, js error on close

Fix regression caused by https://github.com/modxcms/revolution/commit/870f3bb5477fb134756df9a40c7750ca2f229883

On modx.console **close** via ``ok`` button -or- ``<Enter>`` key,   you'd get a JS error:  
*firefox*: ``TypeError: h.apply is not a function``
*chrome*: ``Uncaught TypeError: Object #<Object> has no method 'apply' ``