Fixing several minor bugs on kmelia

- bug 3832
- bug 4040
- bug 4059

Don't forget to check corresponding pull request on Silverpeas-Core...