I managed to filter through the blank records OnFilterRecord event handler. For this, I did so:
Accept := Copy(Trim(dadosNot.FieldByName('ID_AGRAVO').AsString),1,4) = 'B019';
Putting up with the accept parameter value of false records are ignored.
There is a hint for those who need to do it like me, and thank you to everyone who tried to help me.