Fix more NPEs in AbstractWidget and ChatThread