Angular rerouting after failed initialize