bugfix: crash when calling getSetting() from an element model