`bounds_min_max` returns an optional and it can be `nullopt` when curve points are 0. Pull Request: https://projects.blender.org/blender/blender/pulls/117163
`bounds_min_max` returns an optional and it can be `nullopt` when curve points are 0. Pull Request: https://projects.blender.org/blender/blender/pulls/117163