Fix link target in draft mode

Fix #3039

In structureboard.js we hijack any link and rebind it to the normal behavior if it does not trigger a plugin edit. In this process we must check if a target is set for the link.