Ceck if xDefaultStyle attribute already exists, if it does then only prepend it else ignore

if xDefaultStyle attribute does not exist for an element then the string
"null;" will be prepended to the xDefaultStyle attribute. To avoid this,
checking for null condition and then prepending.
todo marker to check for existing properites and replacing them.
minor

removed the trailing space