On invertible nonnegative Hamiltonian operator matrices