Handle situation where presentedViewController has been dismissed