Improved check for valid custom column in preferences.