TRUNK-3654: Removed max revision variable.

@dkayiwa removed the maxRevision variable as per our discussion [here](https://github.com/openmrs/openmrs-core/pull/980).