Connection Between Minimum of Solubility and Temperature of Maximum Density in an Associating Lattice Gas Model