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

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