prevent server from not starting in case of invalid xml

(cherry picked from commit 3d982e74cff3c8b3c960db37bb4f7355e0ce70cf)
Merge pull request #254 from jmecosta/bugfix/server-fails-to-start-in-case-of-invalid-xml

prevent server from not starting in case of invalid xml