ldb: Cope with substring match with no chunks in ldb_filter_from_tree