Merge pull request #6705 from vvoland/list-fix

image/list: Fix `dangling=false` handling