fixed issue when name is empty or null when opening a character dialog