 
                 msg.update msgOpts
 
-                if msgText
+                if responseOpts
                     # Force the msg box to be rerendered if the page changed:
                     $.globalMessenger()
 

                # Restore ajax
                $.ajax = _old_ajax

    _getMessage: (returnVal, def) ->
        if returnVal == false
            return false

        if returnVal == true or not returnVal? or typeof returnVal != 'string'
            return def

        return returnVal

                    m_opts.errorCount ?= 0
                    m_opts.errorCount += 1

                responseOpts = @_getHandlerResponse(old(resp...), m_opts[type + 'Message'])
                if _.isString responseOpts
                    responseOpts = {message: responseOpts}

                if type is 'error' and (xhr?.status == 0 or reason == 'abort')
                    # The request was aborted
