Fix for patient finder with PHP < 5.2.0.