Don't crash if getWidth is 0

Bug: 79203256
Change-Id: I3f91adbda40931e882c4f768794a0d803730805e
1 file changed