Fix NPE reported by EncryptedCurse