Fix bug when removing user labels on logout

First identify the user labels, then remove them. This bug manifested
in dev mode, but not in production mode.