check context is not null when loading configurations