NWN: Fix improper integer operations in GridBox
NWN: Prevent defect induced by empty WidgetGridBox