am a2769edc: Prevent NPE when converting api to xml.

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