Reduce number of palette refreshes

Don't refresh the palette if nothing was actually changed. This
improves the load time of tools.xml by 20% on an Acer C7 Chromebook.