fixed error when trying to fork an empty repository