common: tex: don't delete pdf on error