Effect of the nonmonotonic temperature dependence of water density on convection under uniform heating