[settings] Fix setting_cmp() to handle nameless settings