BZ-7758: safer scope.$digest() calls