Fixing bug with archived transactions

This will fix #563, only mark transactions as archived that have been
confirmed.