Filter: ensure filter_functions is not null. Fixes #593