Eliminated crashes that can occur due to calls on widgets that have already been deleted.
(Typically happens when importing a project, since a project is loaded, closed, and then a new project is opened.)