fix `if err != nil { return nil }`
fix `if err != nil { return nil }`

Signed-off-by: Akihiro Suda <ea940da7e429af3d0d0c18296cabd0112a36bad5@lab.ntt.co.jp>

tonistiigi/buildkit_poc,tonistiigi/buildkit_poc