Hamiltonian hydrodynamics equations for a quantum fluid in the presence of solitons