Issue #670: Entering free-text phenotypes leads to database inconsistencies
Fixed.
[bulletproofing] Fixed possible NPE when deleting custom phenotypes