join.py: Handle exceptions when looking for GUID in a DN