maint: Remove redundant checks from filter.import

* dietncl/filter/import.lua: We now assume that the input document is
syntactically correct; we have replaced error returns by assertion
checks.
* tests/test-filter-import.lua: Updated accordingly.