Update lib/builder/xmlbase.rb

add option to handle nils more explicitly