Refs #20302; take into consideration that the noticeDialog might not be present when using the manual restoreState call