OK, this error happens when empresa object was loaded from DB without associated logo attribute.
CUBA doesn’t have lazy loading of not loaded attributes. Instead, loading is regulated with the concept of “views”.
The view used to load empresa from database - should be extended with logo attribute.
So you need to find out in the code, where empresa comes from.
If it is taken from some data container - then the view is declared in the container, in XML descriptor.
If it’s taken from some service or loaded with DataManager - then the view used with DataManager.load() or loadList() method should be extended with necessary property.