Allow fetching FETCH_HEAD

`query_remote_ref` will return `None` for the ref `HEAD` and `FETCH_HEAD`
but current implementation doesn't cover that case.

This patch allows using the deprecated `fetch_remote_sha` with `FETCH_HEAD`
as was possible previously

Fixes #3