Fixes a problem with updating new versions in rcs

If keepExistingAttributes and createVersionIfNotExists both were set to
true the updateContentVersion action would failed since the method tries
to parse the empty XML of the new contentVersion.