fix bug in ModelHelpers which produce a Fatal Error when using assertRelationship