Turns out this still needed the first isPresent check, and I changed `getState().get()` to `getState().orNull()` to be safe there too.