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

...n 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