don't access contents of empty string, e.g. with kde96709-1.html

Change-Id: Ifa6db0dc7b5c67b65c5bc17c16fb3a61793c833a
(cherry picked from commit 69a16331d0c60ae3d0f376d2265e83ab805ec13b)