GSettings: fix for loop in 'extends' functionality

Obvious mistake :(