Update settings.py

Had a problem when the xml had attributes like  <webserverport default="true">8080</webserverport>
so I propose to use the DOM as intended with empty nodes returning an empty string.
Merge pull request #1 from ccarpo/patch-1

Update settings.py