Ensure that random date is valid.

This prevents random spec failures.