BZ-1067406 - Deployment over REST fails when adding KieSession to the deployment unit name (integral commit)

- fix: cherry picked from commit 877ae995249ce2b6474f9c23c1186727ed63b2e2
- test: cherry picked from commit 61dd6533ebee77f98739551c97abe4507df0b12d