JBIDE-17471 JBIDE-17463 : fix various NPE & disposed widget issues

https://issues.jboss.org/browse/JBIDE-17471
https://issues.jboss.org/browse/JBIDE-17463