Some bug fixes : 2798, 5399 and 5561

Go on tracker.silverpeas.org for further details.

To fix bug 2798, do not forget to check out PR on Silverpeas-Core...