Fix HasSoulgem function to return number of soulgems
Hotfix for crash when deleting an actor