qtscript: Make eventDestroyed() trigger on every destroyed object, not just those you own.

(cherry picked from commit 14476581cc897fd9fc2fec60c8dfddd2ec10fd42)