if for some reason the query was unsuccessful (although it would get logged, this would send a blank reply to the AJAX request).

btw, this was the existing logic.