ManifestUpdateMojo:
Added null checks for writing the xml version/encoding. This is needed when updating a Merged manifest at build time. e.g. - updating the versionName with a build timestamp.