Fixes #23714 -- `date` filter during DST change

The except block catching all exceptions is ugly, but I can't rely on `pytz` library, which is optional, and therefore I can't catch `pytz.exceptions.AmbiguousTimeError` exception.
Does this doc addition match the current behavior of the PR? I don't see code in here to return an empty string overall, just from specific format specifiers.