It seems the key actually exists at this point. But you are correct, there is an issue on L612. https://github.com/owncloud/core/blob/108c656e33af01cc796aadeffc50a822b79d0b43/lib/public/share.php#L612 What do you think about changing getItems() to always return this key?