Fixing xml file creation for relative comparison

Summary xml file would be created in case the previous build is null
for relative comparison.