ensure null strings create empty lists. Fixes #513