Handled the case that relationshipRepresentation is not an array or dictionary.