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.