Fixed the Vedic character crash

Fixed the CTD issue when clicking on the portraits of certain Vedic
characters.