Fixed contribs generation script:
* Properly handling case where 'minRevision' or 'maxRevision' is set to 0.
* Casting values to ints before comparison (thanks @aengelke).