Fix handling of untranslated nodes
When building caja-actions package, UAF can happen in itstools, which is fixed by an upstream PR that hasn't been merged since almost two years ago. As upstream is inactive, I suggest we integrate that PR here. This makes the caja-actions package more reproducible.