Small fix on get_credential_fields for xml clients

Stops get_credential_fields from trying to convert xml response into xml.