We use foliations of multiprojective spaces defined by Hamiltonian functions on the underlying affine space to prove the three dimensional case of a conjecture of Bernstein and Lunts, according to which the symbol of a generic first-order differential operator gives rise to a hypersurface of the cotangent bundle which does not contain involutive conical subvarieties apart from the zero section and fibres of the bundle.