YAMLDatabase: Fix set_fields bug causing updates on empty fields to be ignored.