Fix crash with some old data

See https://sentry.io/organizations/linaro/issues/2775805838/

Signed-off-by: Rémi Duraffort <remi.duraffort@linaro.org>
18 jobs for fix-crashes-old-data in 17 minutes and 6 seconds (queued for 3 seconds)
Status Name Job ID Coverage
  Test
passed dispatcher-debian-10 #140138
amd64

00:02:50

passed dispatcher-debian-11 #140140
amd64

00:02:49

passed server-debian-10 #140139
amd64

00:03:21

passed server-debian-11 #140141
amd64

00:05:19

 
  Analyze
passed bandit-sast #140142
amd64-dind

00:01:12

passed black #140145
amd64

00:00:58

passed code_quality #140146
amd64

00:00:34

passed codespell #140151
amd64

00:00:30

passed coverage #140147
amd64

00:07:16

61.12%
passed dockerfiles #140148
amd64

00:00:29

passed eslint-sast #140143
amd64-dind

00:00:41

passed pylint #140150
amd64

00:02:53

passed schemas #140149
amd64

00:00:44

passed semgrep-sast #140144
amd64-dind

00:01:22

 
  Build
passed debian/10 #140153
amd64

00:01:24

passed doc #140152
amd64

00:00:39

passed docker-amd64-dispatcher #140154
amd64-dind

00:04:00

passed docker-amd64-server #140155
amd64-dind

00:04:24