Fixed exception when creating a transaction with empty account