Fixed npe in YMLSerializer if the config is empty.