Queries with no result fail on page load

image