Handle null/undefined value in test assertion.

No Issue.
- Test is not guaranteed to get a setting that has a "value"
  so we need to handle the case where it's null or undefined.

This fixes a test failure that's been popping up now and then on the postgres build.