On the equivalence of Jordan and Einstein frames in scale-invariant gravity