Fix chest editor dialog not opening if the item no longer exists.

Fix #594.