Make empty query return empty object