There is no check for use-cases where there is no entity in a row or the entity couldn't be loaded.
Add a check for empty entities.
Active
4.2
Core