Fix small issue with this binding.

Sometimes 'this' is not $rootScope (for instance when triggering htmlReady via a $watch). Fix that.