[sr-dev] git:4.1: dialog: check if the transaction is created for BYE closing the dialog