Warning when user object is undefined in get_remapped_userids.

This should fix the warning reported here:
 http://changelog.dreamwidth.org/1122817.html?thread=315393

It checks to make sure the user object is defined before attempting
to call the claimed_by method on it.

I haven't tested this, but it's a simple fix.