Fixed issue #1282: gitdll.dll might crash if a pack file is closed which is still...