Added check on existence of view's window when popover will be presented