IONIC beta 12 strange error

Still problems with scroll in nightly :frowning:

Uncaught TypeError: Cannot read property 'scrollTo' of null (caused by "undefined") (caused by "undefined") (caused by "undefined") ionic.bundle.js:39909(anonymous function) ionic.bundle.js:39909deferred.promise.then.wrappedCallback ionic.bundle.js:19197(anonymous function) ionic.bundle.js:19283$get.Scope.$eval ionic.bundle.js:20326$get.Scope.$digest ionic.bundle.js:20138$get.Scope.$apply ionic.bundle.js:20430(anonymous function) ionic.bundle.js:21938completeOutstandingRequest ionic.bundle.js:12022(anonymous function)

After changing states (not always, only in the one that takes you to the homepage and not always either) scrollView is undefined:

this.scrollTop = function(shouldAnimate) {
this.resize().then(function() {
  scrollView.scrollTo(0, 0, !!shouldAnimate);
});

};

We have an scrollTop on every state change start:

$rootScope.$on('$stateChangeStart', function(){
    $ionicScrollDelegate.$getByHandle('mainScroll').scrollTop();
});