Fix crash on project close, see #236

1 job for Applications/19.04 in 36 minutes and 14 seconds (queued for 2 seconds)