RA-453: Fix for provider linked to voided person.

https://issues.openmrs.org/browse/RA-453
Could you please format this such that there's a space after the if, i.e. "if (..."