Bug 874155 - [SMS] Handle the thread edit mode without altering the location hash

Alternate fix for bug 874155