On the Scattering of a Plane Wave by a Perturbed Open Periodic Waveguide