Fixed exception when trying to clone an empty repository (closes #3)