small tweak to entity detection, it should not choose an entity with ck_node_id set in metadata. Helps when you have multiple nodes with the same IP in CK.