Fix waitForValueCatchingStaleObjectExceptions when supplier returns null.

Optional.of() was failing when the value was null. In this case, Optional.ofNullable should have been used.

Bug: 263313097
Test: presubmits
Change-Id: I8595998bad2932488865c357229e9a2419b35f36
1 file changed