Fixed bug when it was impossible to present controller modally on top of navigation controller.