Adds null checks when getting widget records from Dashboard.