Restore null check to getVisualizedSchedules to fix test failure.
Restore null check to getVisualizedSchedules to fix test failure.

SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus,SalesforceFoundation/Cumulus