Issue #3258159 by Antonnavi: Role expiration doesn't set for role which was added automatically during registration
Closes #3258159