Variable step size does not harm second-order integrators for Hamiltonian systems