Small fix for destroying wire-connections

When the next possible point from the end is a Logic, it will disconnect
from that one aswell