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.
Merge pull request #56 from cmdrclueless/search_referral_fix

Fixes an error when following referrals