Fixed upload file count being wrong in Add Media page (lemma to CC-5863)