Fixed: Check for null source when getting row count