Mappings: Fix Get field mapping api with pretty flag

Use  builder.field method instead of XContentHelper#writeRawField

Closes #6552
maybe just take the output you get from the API and re-feed it to a builder you know is pretty printing and make sure the output is identical to the input?