Added support for empty system id in doctype declaration

This pull request intents to fix #2