fix #164 Attributes of type string contain string "null" when the bound ...

...value is undefined

A quick fix, but raising a bigger question about undefined values, see commented test in the PR.