When modifying links to use a target, check body exists. Also added fix per ChrisO to set syncflag correctly.
Authored by: b_calderwood 2010-11-18
Parent: [r4881]
Child: [r4883]