Fix daemon.Get() error handling with --link setup. Add test. Upstream-commit: 3ddef31793b45b3891f5b9955254b0167ebe7cba Component: engine