gitweb: remove unnecessary test when closing file descriptor