NPE/isDisposed fix on widget