Lenient method to optionally create a UnitFilter from an underlying tqa.base.dom.NonStandardResource.