BHV-698: Guard against non-string objects.