chore($rootScope): code cleanup

Cleanup on the findLastWatcherBefore function