Mindstorms, black orphaned data wires
It looks like you have discovered a bug. You should report it using Help > Give Feedback.

For working around the problem, the only thing I know to do is to cut the blocks with the black wires and then paste them back in. This seems to get rid of the black wires.