change empty string check to be backward-compatile with Java 1.5 [0]

Fix for pre-release testing error on 19 Aug 2013.