(#7) resources: fixed null-pointer when handling `isOptional`
Merge branch 'feature-0.10.x/7-fix-resource-optional-handling' into release-0.10.x

* feature-0.10.x/7-fix-resource-optional-handling:
  (#7) resources: fixed null-pointer when handling `isOptional`