Add missing error check

Docker-DCO-1.1-Signed-off-by: Nathan LeClaire <nathan.leclaire@docker.com> (github: nathanleclaire)
Merge pull request #7162 from nathanleclaire/tar-with-options-err-check

Add missing error check