TMDM-7982: "Opening/Closing Staging Area throws errors"

Fix 'itemId is not defined' error in native Javascript code.
(https://jira.talendforge.org/browse/TMDM-7982)
Merge branch 'maintenance/5.6'