JBIDE-17531 : check for disposed widget

Signed-off-by: Fred Bricon <fbricon@gmail.com>