use authority name and licence name only when available in the response.

@maxfliri
@abersager