Fix defenrate case of nil filter
Implement filter in null, cmd and pipe agents