Normal practice is to take constant fuel samples during a transfer and if contamination is detected you stop the transfer. Then you reject the sale.
You don’t just keep filling because it will spoil all your fuel.
I wonder how this could be bypassed during bunkering. A magic pipe perhaps on the fuel barge?