The Zariski-Lipman conjecture in the graded case