Handle enums like GstBaseTextOverlayHAlign that have missing values by dynamically calculating the actual range needed and skipping invalid enum values instead of creating placeholder entries. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9495>