Current sheets as waveguides for the fast magnetosonic wave