check for empty string

as demonstrated by kde246118-4.odp

Change-Id: Idf1224555e0d7be9a679862da9ff256cf7a4d128