Fix Issue #316: a Widget with no "parts" results in an exception being thrown