jasmine.Desktop activeForm will be set to undefined if dialog closes and there is no currentView and no display parent (from jasmine.specs)