fixing bug #5941 : node transaction error in gallery application

Be careful to get matching pull request on Silverpeas-Core