Fixed bug when reading empty string

Change-Id: I85399aabcd68fd7769f07b4c9e695caa7995b144