Removed checks for ob->proxy from the equation, you can totally have proxy objects linked into another .blend file!