Fixed a bug related to null strings.