Fix crash loading user palettes
Move the call to select_palette() out of load_swatches() (which is too early, because the palette hasn't been added to _palettes yet) to after update_loaded_palette_entry() (which actually adds it).
Otherwise select_palette() will trigger an assertion failure from attempting to select a palette that is not yet in _palettes.
Fixes #5448 (closed)