Uniqueness of solutions to Hamilton-Jacobi equations arising in the Calculus of Variations