Check if project.repository before check

Fix for #2776
Using empty_repo? instead

Display message if repository is empty