Fix centroid computation for collections with empty components

Fixes bug #582

git-svn-id: http://svn.osgeo.org/geos/branches/3.3@3774 5242fede-7e19-0410-aef8-94bd7d2200fb