JBIDE-18485: UpdatePolicy and Name doesnt have to be specified

So again.. added null check for update policy. I also noticed that empty tag is generated if no name is specified.