Even if ref can see it, they'd only whistle when the ball changes possession (which in this case, it does, so if ref see it, it should be a foul.) But they tend to give advantage if the attacking team is still in control of the ball.
This is a textbook case of tactical foul but ref didn't see...