[mlocale] Prevent assertion under MLocale::indexBucket with malformed input