Prevent boost python registration warning

Now check whether the converter is already registered in a more robust
way.