Added check to ObjectUtils if the widget is disposed. Fixes #644