Fix minor issue, when no results were being found an exception was being thrown