Fix read_config for nil class