CFRCPRAP-156: fixed NPE and Widget dispose error