Close dictionary headwords dialog before configuration change
BGL: Fix "width" attribute handling (issue #462)