Fixed a crash when removing modal view controllers.