BUG 14066, 14065 - cope with empty document and assertion for invalid table
Whitespace tidyup
Merge pull request #11 from pthedinger/master

Fixes for empty files and assertion for invalid tables