Fixes an error when following referrals

When following referrals in search results an error
occurs due to an unreferrenced variable. The actual
value is on the pdu object.