Review this code makes me think that there should be a permission or access denied error. Perhaps that is something to consider when upstreaming this change.