Collision filter doesn't prevent from collision on new body

In my world I have two body types, to simplify: A and B.

If I create A body somewhere, and B body somewhere else and let it move into each other (both bodies have initial velocity), they are passing through each other. This is what I want. But if I create A body, and then add B body which overlaps A body on it's initial position, there is collision, and I think shouldCollide() is not called at all, so I can't prevent them from collision.
How can I solve this problem?

I'm using newest stable LibGDX.

Original thread: https://box2d.org/forum/viewtopic.php?t=9710