Fix toXContent of GeoShapeQueryBuilder/GeoShapeFilterBuilder

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