Issue #2666166 by jsst, Lendude, Andrej Galuf: View with not required relationship and aggregation enabled fails to execute