Fix #399, this fixes an KeyError when the handler is only configured in a config fragment.