Fix an error in projects admin when statistics are missing

Signed-off-by: Rémy Coutable <remy@rymai.me>
96 jobs for 49915-fix-error-500-admin-projects-nil-storage in 42 minutes and 37 seconds (queued for 13 seconds)
Status Job ID Name Coverage
  Build
manual #213698473
gitlab-org allowed to fail manual
review-docs-deploy-manual
 
  Prepare
passed #213698476
gitlab-org
compile-assets

00:08:19

passed #213698480
gitlab-org
retrieve-tests-metadata

00:00:36

passed #213698477
gitlab-org
setup-test-env

00:05:43

 
  Test
passed #213698590
docker gitlab-org
build-qa-image

00:05:55

passed #213698494
allowed to fail
code_quality

00:13:45

passed #213698592
gitlab-org
danger-review

00:01:56

passed #213698577
gitlab-org
db:check-schema-pg

00:02:58

passed #213698574
gitlab-org
db:migrate:reset-mysql

00:06:04

passed #213698573
gitlab-org
db:migrate:reset-pg

00:04:44

passed #213698587
gitlab-org
db:rollback-mysql

00:06:13

passed #213698586
gitlab-org
db:rollback-pg

00:02:40

passed #213698496
allowed to fail
dependency_scanning

00:10:03

passed #213698482
gitlab-org
docs lint

00:02:35

passed #213698569
gitlab-org
downtime_check

00:03:10

passed #213698571
gitlab-org
ee_compat_check

00:03:32

passed #213698483
gitlab-org docker
gitlab:assets:compile

00:21:41

passed #213698589
gitlab-org
gitlab:setup-mysql

00:04:29

passed #213698588
gitlab-org
gitlab:setup-pg

00:05:38

passed #213698484
gitlab-org allowed to fail
gitlab:ui:visual

00:09:50

passed #213698593
gitlab-org
gitlab_git_test

00:01:28

passed #213698486
gitlab-org
jest

00:16:36

passed #213698485
gitlab-org
karma

00:11:48

57.04%
passed #213698583
gitlab-org
migration:path-mysql

00:15:24

passed #213698580
gitlab-org
migration:path-pg

00:15:52

passed #213698594
gitlab-org
no_ee_check

00:01:14

passed #213698490
gitlab-org
qa-frontend-node:10

00:13:49

passed #213698489
gitlab-org
qa-frontend-node:8

00:14:20

failed #213698492
gitlab-org allowed to fail
qa-frontend-node:latest

00:01:57

passed #213698487
gitlab-org
qa:internal

00:04:43

passed #213698488
gitlab-org
qa:selectors

00:04:20

passed #213698591
allowed to fail manual
review-build-cng

00:07:29

passed #213698564
gitlab-org
rspec-fast-spec-helper

00:03:19

passed #213698497
gitlab-org
rspec-pg 1/50

00:16:58

passed #213698506
gitlab-org
rspec-pg 10/50

00:13:36

passed #213698507
gitlab-org
rspec-pg 11/50

00:17:00

passed #213698508
gitlab-org
rspec-pg 12/50

00:15:12

passed #213698509
gitlab-org
rspec-pg 13/50

00:14:48

passed #213698510
gitlab-org
rspec-pg 14/50

00:15:11

passed #213698511
gitlab-org
rspec-pg 15/50

00:15:08

passed #213698512
gitlab-org
rspec-pg 16/50

00:16:27

passed #213698513
gitlab-org
rspec-pg 17/50

00:16:54

passed #213698514
gitlab-org
rspec-pg 18/50

00:14:37

passed #213698515
gitlab-org
rspec-pg 19/50

00:17:07

passed #213698498
gitlab-org
rspec-pg 2/50

00:15:48

passed #213698516
gitlab-org
rspec-pg 20/50

00:15:48

passed #213698517
gitlab-org
rspec-pg 21/50

00:17:01

passed #213698518
gitlab-org
rspec-pg 22/50

00:15:44

passed #213698519
gitlab-org
rspec-pg 23/50

00:15:43

passed #213698520
gitlab-org
rspec-pg 24/50

00:15:48

passed #213698522
gitlab-org
rspec-pg 25/50

00:15:01

passed #213698523
gitlab-org
rspec-pg 26/50

00:13:56

passed #213698524
gitlab-org
rspec-pg 27/50

00:17:40

passed #213698526
gitlab-org
rspec-pg 28/50

00:15:07

passed #213698527
gitlab-org
rspec-pg 29/50

00:14:51

passed #213698499
gitlab-org
rspec-pg 3/50

00:13:22

passed #213698528
gitlab-org
rspec-pg 30/50

00:15:27

passed #213698529
gitlab-org
rspec-pg 31/50

00:17:45

passed #213698530
gitlab-org
rspec-pg 32/50

00:15:31

passed #213698531
gitlab-org
rspec-pg 33/50

00:15:00

passed #213698532
gitlab-org
rspec-pg 34/50

00:13:29

passed #213698533
gitlab-org
rspec-pg 35/50

00:17:09

passed #213698534
gitlab-org
rspec-pg 36/50

00:16:01

passed #213698535
gitlab-org
rspec-pg 37/50

00:18:22

passed #213698536
gitlab-org
rspec-pg 38/50

00:17:06

passed #213698538
gitlab-org
rspec-pg 39/50

00:15:04

passed #213698500
gitlab-org
rspec-pg 4/50

00:14:38

passed #213698540
gitlab-org
rspec-pg 40/50

00:15:34

passed #213698541
gitlab-org
rspec-pg 41/50

00:15:14

passed #213698544
gitlab-org
rspec-pg 42/50

00:15:18

passed #213698545
gitlab-org
rspec-pg 43/50

00:16:51

passed #213698547
gitlab-org
rspec-pg 44/50

00:17:08

passed #213698548
gitlab-org
rspec-pg 45/50

00:15:31

passed #213698551
gitlab-org
rspec-pg 46/50

00:13:57

passed #213698553
gitlab-org
rspec-pg 47/50

00:13:22

passed #213698556
gitlab-org
rspec-pg 48/50

00:17:23

passed #213698558
gitlab-org
rspec-pg 49/50

00:14:17

passed #213698501
gitlab-org
rspec-pg 5/50

00:14:06

passed #213698560
gitlab-org
rspec-pg 50/50

00:14:40

passed #213698502
gitlab-org
rspec-pg 6/50

00:14:01

passed #213698503
gitlab-org
rspec-pg 7/50

00:15:27

passed #213698504
gitlab-org
rspec-pg 8/50

00:15:46

passed #213698505
gitlab-org
rspec-pg 9/50

00:12:45

passed #213698495
allowed to fail
sast

00:19:57

passed #213698567
gitlab-org
static-analysis

00:23:11

 
  Review
passed #213698595
gitlab-org allowed to fail
review-deploy

00:01:38

failed #213698598
gitlab-org allowed to fail manual
review-stop

00:00:21

 
  Qa
manual #213698600
allowed to fail manual
package-and-qa
passed #213698603
docker gitlab-org allowed to fail
review-performance

00:02:50

manual #213698602
docker gitlab-org allowed to fail manual
review-qa-all
passed #213698601
docker gitlab-org allowed to fail
review-qa-smoke

00:02:28

 
  Post Test
passed #213698607
gitlab-org
coverage

00:02:57

95.14%
passed #213698608
gitlab-org allowed to fail
flaky-examples-check

00:01:54

passed #213698606
gitlab-org
jsdoc

00:01:39

passed #213698605
gitlab-org
lint:javascript:report

00:00:44

 
  Post Cleanup
manual #213698609
gitlab-org allowed to fail manual
review-docs-cleanup
 
Name Stage Failure
failed
review-stop Review
Fetching changes with git depth set to 1...
fatal: Couldn't find remote ref refs/heads/49915-fix-error-500-admin-projects-nil-storage
Reinitialized existing Git repository in /builds/gitlab-org/gitlab-ce/.git/
Fetching changes with git depth set to 1...
fatal: Couldn't find remote ref refs/heads/49915-fix-error-500-admin-projects-nil-storage
Reinitialized existing Git repository in /builds/gitlab-org/gitlab-ce/.git/
Fetching changes with git depth set to 1...
fatal: Couldn't find remote ref refs/heads/49915-fix-error-500-admin-projects-nil-storage
ERROR: Job failed: exit code 1
failed
qa-frontend-node:latest Test
gyp ERR! node -v v12.2.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Running after script...
$ date
Thu May 16 13:10:01 UTC 2019
ERROR: Job failed: exit code 1