Convert String.IsNullOrEmpty call to Length != 0 to support older versions of the Framework.
Changed paths: