Fixed bug that caused app to crash when zero results were returned