BHV-698: Guard against null/undefined and non-strings.

DCO-1.1-Signed-Off-By: Kevin Schaaf <kevin.schaaf@lge.com>