Allow queries that result in empty dicts or lists to return valid 200 response code - fixes #384