The issue was that there were no handle positions but `retrieve_visible_bezier_handle_points` still returned a mask of bezier points. The fix ensures that ther drawing has handle positions and returns an empty mask otherwise. This means that the code that draws the handles now correctly ignores them when there are no handle positions available. Pull Request: https://projects.blender.org/blender/blender/pulls/137655