Scripts/OnyxiasLair: Fix a crash in boss_onyxia

Closes #10393

Note: this just fixes the crash, not the issues the script has (a.k.a rewrite this)