validateDateBefore bugfix

fixed a bug where the date_before validation failed when no date_till is
being set