Fixed a bug with the "datecompare" rule

...which was always considered "required" even if the element had no
"required" rule attached to it