The evolution of the QSO luminosity function up to z = 4: The role of K-correction uncertainties