Fix/work around #1642.
Fix/work around #1642.

If we're passed something other than a LinearLayout, build a new
View.

Sam1301/zulip-android,prati0100/zulip-android,saketkumar95/zulip-android,saketkumar95/zulip-android,zulip/zulip-android,prati0100/zulip-android,abhaymaniyar/zulip-android,vishwesh3/zulip-android,abhaymaniyar/zulip-android,Sam1301/zulip-android