[#8364] remove user roles if they are emptied
3 files changed