Automated Error Report:NPE on Cohort Builder

See https://tickets.openmrs.org/browse/RCM-68