check aborts with undefined method `path_to_repo' for nil:NilClass.

Created by: h0ru5

Upgrading 4.0 to 4.1 following https://github.com/gitlabhq/gitlabhq/wiki/From-4.0-to-4.1 one (example) user and repo is present running sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production --trace leads to this error: https://gist.github.com/4637148

could be related to #2772 rsp. #2745 (closed) ?