better check for setting resource
Merge pull request #189 from IIIF/manifest-display-bugs

better check for setting resource