fix panic when config object is null
Created by: coury-clark
Fixes a panic when the config is null. This cropped up when I switched from a config object to environment variables and all of the test instances already had the object set.
Test plan
Unit tests for all null possibilities