CORE-4135: fixed a few bugs in the update-app-labels service