display better error messsage for query errors

fixes Graylog2/graylog2-web-interface#392