Filter compiler: fix null dereference in a specific case