[GEOT-4586] Null attribute value causes NPE in SumVisitor