bug fix: filter_lua did not behave right if a message was NULL