Working version of dismissing presented root controller.