Fix/validator before after format

As shown in the updated test, there is a problem using relative before/after rules when one of the fields is an invalid datetime format because the validator calls `new DateTime($param)`, which will throw an exception.