filter-branch: Fix fatal error on bare repositories