Fix sync exceptions

In some cases, if the profiles sync fails, an exception can disable the whole site.
This is a quick fix to avoid sync exceptions.
Done on 3.11 for quick integration into live installations.