Bugfix: new handlers not detected on reload.

Fixed a bug whereby new handlers added during runtime were not saved into the config tree.