dumb: Handle empty repository edge case
An error was raised previously when trying to fetch HEAD.
Related to T3618