Fail gracefully when a request samples option saved in localstorage doesn't exist.
When users choose an option in Request Samples, we save it in local storage. If however that option disappears from code (let's say we decided it's not needed anymore), this causes the docs component to crash.
We should fail gracefully in that case, preferably resetting local storage to the first available option.
To reproduce, choose an option (say JavaScript/Fetch) and then remove it from config and refresh the page.
In RequestSamples we are using "persisted atoms" - https://github.com/stoplightio/elements/blob/main/packages/elements-core/src/components/RequestSamples/RequestSamples.tsx#L22
This is a custom wrapper - https://github.com/stoplightio/elements/blob/0eceb91e2d786d1c35d9cf632ab74c7efc1b119c/packages/elements-core/src/utils/jotai/persistAtom.ts#L4 - for a jotai library - https://github.com/pmndrs/jotai