avoid schema violation when removing last fai class in a profile by removing the empty profile