Migrate integration fixes
Issue #2304457 by draenen: Fixed Fatal error on creating a membership with 7.x-1.0-alpha4.