Issue #3221345 by drunken monkey, jan kellermann: Fixed handling of invalid date values during indexing.