Handling empty documents
Merge pull request #61 from goetas/issue_50

Handling empty documents