Check if project.repository before check

Fix for #2776
Using empty_repo? instead

Display message if repository is empty
Merge pull request #2803 from donnykurnia/fix-2776

Improve gitlab:check. Fix 2776