Don't import duplicate transactions
In case an imported transaction was not accepted and imported a second
time, it was detected as a duplicate but not handle as such. This caused
the transaction to be imported a second time. This patch solves the
issue by handling the duplicate transaction appropriately.