Magic system: Fixed a NULL pointer crash in ExecuteType4().