Projection effects in the strong lensing study of subhaloes