fixed access to tx.error in case tx is None

wallet.make_unsigned_transaction sometimes returns None (when offline for example)