Also account for a widget being null/not defined, and not just closed/open.