Avoid exception on any case.
Merge pull request #5438 from openscholar/avoid_profiles_exceptions

Fix sync exceptions