MDL-40947: Fix segmentation fault issue in get_fast_modinfo.