Keep word filter through an error if `keep_word_path` was specified.

Closes #4073