Critical Current in YBCO Coated Conductors in the Presence of a Macroscopic Defect