I'm not sure what Cargo ships is doing (I haven't looked) but, bob's logistics adds next_upgrade to the pump, as it's an upgrade chain.
It's possible cargo ships is cloning that entity (after I add the tag) and thus causing the error.
I can probably fix the issue by moving adding the flag from the data phase to the data-updates phase.
I'll look into it.