Fix issue while retrieving repositories with no hooks