Magnetoresistance in magnetic nanoconstrictions: The role of structural defects