Fix to "$digest already in progress" error.

When using angular-carousel inside an isolated scope it can happen to get the "$digest already in progress" error. I fixed it by checking $$phase of $rootScope instead of the local scope's.