Filter compiler: fix some null pointer dereferences