Fix crash in EmptyWidget drawing code.