Handled the case that relationshipRepresentation is not an array or dictionary.
Make sure representationOrArrayOfRepresentationsOfEntity: is called before getting resoureceIdentifier.