Fix bug with empty "results" variable (results=None)