The `bounds` is `nullopt` when the number of points is 0 at current frame. The fix uses `value_or()` to make sure we get some bounds. Also uses `Bounds<float3>` instead of `std::optional<Bounds<float3>>` in `gpencil_object_cache_add`. Pull Request: https://projects.blender.org/blender/blender/pulls/119690