prefs: cloning: it helps when you return the result

(integrated from trunk branch change 82ea31f by Todd Whiteman <toddw@activestate.com>)