Adds check it widget is not disposed when getting widget parent