Fix crash on project open and possible guides loss on recovery.

Fixes #711
1 job for master in 18 minutes and 47 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #49744
linux kf5-qt5 qt5.12

00:18:47

0.0%