check for null before calling grid getRowCount in completion manager