#17906 -- Fix docs error introduced in commit 1ea44a3

Issue #17906 was relatively recently, but the equivalent code sample for `firstof` in the documentation still incorrectly showed the `|safe` filter.