The rest-frame UV luminosity function at z ≃ 4: a significant contribution of AGNs to the bright end of the galaxy population