Handle uninitialized config, add get_config() method

Change-Id: I688303a07c3f60daca1e4d979d6bcf58d799bdea