Issue #2867883 by adriancid: Delete the custom variables related to content types if they really exists