Add error handler

If imenu can't search function in this module,return nil not but user-error.