Removed extra lines and spaces in the catalog.xml file creation, also wrapped it in a test for availability

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1712 6f19259b-4bc3-4df7-8a09-765794883524
1 file changed