filtfmts: Avoid null pointer dereference