Quench dynamics in Bose-Einstein condensates in the presence of a bath: Theory and experiment