Fixed bug when syncing.

Fixed a failure when tx-comment is not present for the transaction.