Make canEdit fall back to session if the object's SubsiteID not there.
Make canEdit fall back to session if the object's SubsiteID not there.

This problem manifests when a GridField-managed relationship tries to
create an object that references the container from canEdit - the
container in this case has empty fields.

An example of that is a HomePage with CarouselItem - if the
CarouselItem::canEdit tries to call $this->Page()->canEdit(), the "Page"
will be a dummy object, not the actual instance of the HomePage that's
doing the manipulation.

This is similar to the behaviour of SiteTree::canEdit, which solves
this situation by falling back to "return
$this->getSiteConfig()->canEdit($member);"

dnadesign/silverstripe-subsites,mikenz/silverstripe-simplesubsites,silverstripe/silverstripe-subsites,mikenz/silverstripe-simplesubsites,mandrew/silverstripe-subsites,danaenz/silverstripe-subsites,dnadesign/silverstripe-subsites,wernerkrauss/silverstripe-subsites,silverstripe/silverstripe-subsites,wernerkrauss/silverstripe-subsites,danaenz/silverstripe-subsites,mandrew/silverstripe-subsites