fix: errors handling messages in do_transaction(). (RhBug:981310)

Caused by refactoring done in 4dad74e.