Fix a crash if user browses an empty repository.

Repo step:
1. Create a project.
2. Browse the project files via web.
3. Crash.

Root cause:
A null reference exception raised in Repository::Resolve(). reversion is
null for this case.