runtime error fix for invalid recordtypeId's in settings.