Safety check when joining before accessing fields
Fix #9166