Excellent catch @vertein , looks like that's a bug.  Folder types in the favorites branch, against which this logging was developed, standardizes on the String representation of types in both the Java and XML layer, and so this bit served to there better document this logic instead of having the details of which folder types are handled special buried on this line of code.  But `master` doesn't have that change, and so there's both integer and String representations of folder types depending on where you look.  I think the best move is to back out the introduction of `FOLDER_TYPES_GRACEFULLY_DEGRADED_SET` as a bridge too far for this pull and try again with that refactor after Favorites eventually merges to master.  I'll plan on making that change on this pull request's backing branch when I get a chance.