Handle nil in response

http://www.w3.org/TR/2001/REC-xmlschema-0-20010502/#ref21

I'm not particularly proud of the implementation, but I can't really see any alternative.
@grahamrhay can you change the regex here to `/^xmlns:|^xmlns$/`?