Make generated string attribute getters cope with libdom returning NULL.
Make generated string attribute getters cope with libdom returning NULL.

Fixes #2415, #2418.

kyllikki/nsgenbind,kyllikki/nsgenbind