refactor: eliminated introducing NULL chain link in body_filter_by_lua*, which simplied the implementation a lot.