Check if actor is destroyed before querying traits in TriggerGlobal

Fixes #6454