RCM-73: Automated Error Reportjava.lang.NullPointerException

Use org.apache.commons.collections.comparators.NullComparator for null-safe comparison.
https://tickets.openmrs.org/browse/RCM-73