Fixed a bug in publishing the vApp template to the catalog.