[OE-5224] fixed bug when no leaflets are selected