JENA-817 : Fix for sum(...) of an empty group.