Opening empty repository -> error 500

I am getting the same issue as #6576 , I restored from linux-service v1.1.0 to docker v1.10.3.

When looking through the logs, this is what if found.

...ules/context/repo.go:627:func1() [E] GetBranches: No branches in non-empty repository /data/git/repositories/evo/digital_marketing.git