Does thermodynamics rule out the existence of cosmological singularities?