preventDefault on exception links only if there's line number