fixes #4659 JS errors when you Edit a Container