Editor: update existing maps when changing a tile pattern id.

Fix #559.