ui: no blob or tree redirect if no commit ID provided
Created by: unknwon
When repository is clone in progress, user is able to visit the repository but with empty commit ID, which leads to git.Stat
call to fail in redirectTreeOrBlob
function.
Adds a check for empty commit ID.
Part of #10709.