Fixes NPE in tablet chat layout.
Reverts 7d1feac in order to fix no class def found for java.awt.Dimension.