mod_base: make data filter more robust against illegal date values.