Fixing several bugs on app Kmelia

Bugs are 4986 and 4996

Don't forget to check out corresponding PR on Silverpeas-Core...