handle duplicates for rootscope

the applyUpdates() call didn't check if the annotation to be added
was already in the $rootScope.annotations