Prevent potential crash in libsmi.