[OE-3154] fixed broken query with no findAll() call