Issue #1237: JavaScript exception when adding new candidate genes

Better fix
Merge branch 'issue-1237' of https://github.com/mjshepherd/phenotips into issue-1237

Conflicts:
	components/patient-data/ui/src/main/resources/PhenoTips/UIX_Field__genes.xml