A hidden constraint on the Hamiltonian formulation of relativistic worldlines