Don't 500 when there isn't a query
Putting in a stupid hack for sean