Do not crash in getPlaintext if an unregistered item type is present in the database