The UI for the entity_views_handler_relationship_by_bundle views handler expects to find a bundle entity (eg profile2_type).

The rest of it should work fine -- we just need to fall back to the generic string 'bundle' if the entity's 'bundle of' property isn't found.