Bug 859224 - [SMS] Back Key in thread view not working for new sms during call.r=julienw

Better check for the keyboard
Add a timeout to always go back even if something goes wrong.
(cherry picked from commit d45a008dc23fbb89a1276e0afa73cf157804a06a)

Conflicts:
	apps/sms/js/thread_ui.js