Fix some bugs when sending Jingle-session packet.