libs/lmo: fix possible null pointer dereference in lmo_lookup() - thanks blogic