LPS-46825 addResources reindex the user & contact internally, so we need to create the contact before to add the resources
Revert "LPS-46825 addResources reindex the user & contact internally, so we need to create the contact before to add the resources"

This reverts commit 78358c7eaf7c81320bd7464320b27fec40d13da5.
LPS-46825 add temporary workaround. The root problem is that we're indexing twice, and this didn't happen in 6.2.x, so I'd rather not fix it by just sorting when we add resources as that's not immediately obvious that the ordering has an issue, especially since we always add resources right after the entity in other places. The try catch block makes it more obvious wht the issue is, and then we can remove this after the double reindexing is fixed.
LPS-34965 Use only valid portal domains to create portal URLs
LPS-34965 Use valid domains for portal URLs
LPS-34965 SF