Only check the value for a relationship when the value is a string.

`$faker->datetime` returns a DateTime object, this causes an error to be thrown when it is passed to `preg_match()` in the `hasRelationshipAttribute()` method.