fix(uiView): Fixed infinite loop when is called $state.go() from a controller. Fixes #1194