The Effect of Uncertainty Principle on the Thermodynamics of Early Universe