Fix bug when removing user labels on logout

In two steps, identify the user labels to be removed, then remove
them. This was a tricky bug that manifested in development mode, but
not in production mode.