[core] Don't update LINENO while running ERR trap