The exception occurs, if the policy type initially has no `dir` field. This is usually the case, only the directory measurement policy has the field.
Sooner or later we should change this, but atm the whole policy view works like this.