Fixed a bug when cancelling adding a new monitor widget it was crashing with object ref not set.