Fix errors not displayed if entity type not selected. Check $entity->access() when the user embeds the entity.
Moved the file access workaround to the EntityHelperTrait.