gh-91078: Return None from TarFile.next when the tarfile is empty (GH-91850)

(cherry picked from commit 78365b8e283c78e23725748500f48dd2c2ca1161)

Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
3 files changed