[libsmi] Correct way to handle import error