am baf6bc51: Prevent NPE when converting api to xml.

* commit 'baf6bc51adf56a5ed569f9ab1edb31980324fee6':
  Prevent NPE when converting api to xml.