IDGEN-30 : Auto-generating identifier broken in OpenMRS 1.7 and before on the new patient page