[sr-dev] git:5.7:d411c6ea: dialog: don't send the BYE if dialog is in deleted state (#3714)