Fixed:  invalid function call if no results returned for a run (needed to check null and 0 case)