BACKLOG-4194 - Regressions raised by code review 
https://jira.jahia.org/browse/BACKLOG-4194 

Break loop after flushing labels:
https://devtools.jahia.com/fisheye/cru/AND-168#c6688