[tern addon] Remove unnecessary error check