Sometimes, the Kibana home page doesn't display the `Upload a file` button even though the user has the needed permissions.  Can e.g. be seen a couple times in this [flaky test runner job](https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/869/). Might be related to the changes made in #77745