Bugfix for center of mass calculation

area=0 was leading to NaN in center of mass due to division by zero