Fix for the weird modal behaviour on iOS8

When using iOS 8 and the first modal page that is opened is launched from a foreground outcome, the navigation would freeze when reopening a modal page.. -_- This patch solves this :)