fixes #5783 better handling of other gender in contact edit form