Partial fix for #560

Add filename to returned DomRegion if available.
Merge pull request #737 from 7sharp9/EmptyDomRegionImprovement

Partial fix for #560