Adding fix to stop exception when trying to access empty results.