Fixing empty query - doesn't crash now hopefully

Signed-off-by: Seb Lee-Delisle <sebleedelisle@gmail.com>