@someone1337 - should you happen to pop-up and see this, the easiest way to handle this would be to check for entity.prototype.selectable_in_game
property - most likely you should ignore all such entities (they are likely to be some kind of special placeholders etc that nothing should interact with).
Mainly mentioning it since I've already had a run-in with Tapeline and another mod, so had a chance to dig into it a bit. :)