Fix for the empty string (REG_SZ) problem