Fixed issue with route not being rendered because promise resolution is happing outside of angular