[osh/cmd_eval] Fix duplicate ERR trap by removing dead code