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.
Merge pull request #4363 from jaswilli/fix-test

Handle null/undefined value in test assertion.