Fix a crash if msg_info or msg_info->driver are NULL.