Fix std::optional value() build error on older macOS SDK
No longer happens on the buildbot, but for users building with an older
Xcode , still need to avoid using value().
To see the build failure: https://devtalk.blender.org/t/build-failing-on-macosx-error-value-is-unavailable-introduced-in-macos-10-14