fix assign_moderator command

There was an error if the moderator is not null