TRUNK-3820: Adding conditional check to validate the PersonName only if it is not voided

https://tickets.openmrs.org/browse/TRUNK-3820
PS: My first pull-request to OpenMRS.