Add null check in the collector for custom filters when running through
plugin dependencies