Fix toXContent of GeoShapeQueryBuilder

A missing endObject() resulted in serialization errors.

Closes #3878