Fix: error set on non object
Merge branch '3.2' of https://github.com/Dolibarr/dolibarr.git into 3.2