cmd/cue: skip over null when importing with --path
YAML format allows multiple documents to be embedded in a single file,
and it is common that a multiple documents file contains empty
documents whose value is null.
This change skips over null when it encounters an error during
importing with the --path flag.
Fixes #3464
Change-Id: I5f1756a109938d405682ece2f67437e7b831a6aa
Signed-off-by: haoqixu <hq.xu0o0@gmail.com>
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1202049
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Chief Cueckoo <chief.cueckoo@gmail.com>
authored by