Guard against empty <AnchorPoint>.

See also http://jira.codehaus.org/browse/GEOS-6748