Ignore inaccessible items when finding the leading image

When finding the leading image (ie an image field that is the first visible item) it can currently fail if there is an inaccessible item above it (eg the language list is hidden but appears first).

This makes sure that it only looks at accessible items.