Fix bug with autorotation while a modal view controller is presented.