         item = document.createElement('div')
         item.classList.add 'arrow_box'
         item.textContent = description
-        atom.workspace.getActiveTextEditor().decorateMarker(m, {type:'overlay', item}, position:'head')
+        atom.workspace.getActiveTextEditor().decorateMarker(m, {type:'overlay', item}, position:'head') if m?
 
         @errorMarkers.push(m)
 

        queryInfo.marker = marker
        @processedQueries.push queryInfo

        editor.decorateMarker(marker, type: 'line-number', class: 'query-loading')
    escapeRegExp: (str) ->
        str = str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
        return str.replace(/(?:\r\n|\r|\n)/g, '[\\r?\\n]');

        for query in @processedQueries
            if query.queryId == result.queryid
                setTimeout( () =>
                    unless query.marker.isDestroyed() or query.marker? == false
                        atom.workspace.getActiveTextEditor().decorateMarker(query.marker, type: 'line-number', class: 'query-rendering')
                , 300)

