Fix problem with null user group exception during reset password process