Fix for JSON showing on empty result.
Fix for JSON showing on empty results.