Commented out a logging call that was causing 500 errors whenever a query returned no results.