Cohort builder error on openmrs 2.1.2.

I have created this ticket and attached a compiled module with the hack: https://issues.openmrs.org/browse/RCM-106

If the hack is approved, and @judy you test to confirm that all is well, i can release the module.