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

The problem was fixed in newPatientFormExtensions.js https://github.com/openmrs/openmrs-module-idgen/commit/e20e81b169d8969a8d209ea342ad7ea3a5201498 
but not in this file
Merge pull request #4 from individual-it/patch-1

IDGEN-30 : Auto-generating identifier broken in OpenMRS 1.7 and before o...