sw: small code refactor

Created method DocxAttributeOutput::pushToAttrList which encapsulates
a piece of code that was widely repeated in that class:

  if( some attribute list does not exist )
      create the list

  push some value to the list
  push some other value to the list

Change-Id: Ia648802f5237bd7c97bf225d33b305dbef1b72dd