Fix for potential NullPointer exception if the results are an empty file