Guard against empty <AnchorPoint>.
Merge pull request #588 from marcjansen/GEOS-6748

Guard against empty <AnchorPoint>.