TranslationProject: Fix potential 500 when last_submission.unit is None