fix: Do not throw if messageInput reference is undefined
fix: Do not throw if messageInput reference is undefined

Fixes #2273

* make sure not to reset reference to messageInput
* check if the reference to messageInput is defined before focusing

vishwesh3/zulip-mobile,vishwesh3/zulip-mobile,vishwesh3/zulip-mobile,vishwesh3/zulip-mobile