Fix yara service migration.

Make sure get_config() creates a default config first and then overrides
it with things already from the database. Without this, the migration
from existing configs to ones that can be distributed fail.