If you used any more advanced algorithm than "nearest neighbour" while
computing the final pixel colors in the resized image, then color
changes *are* made. Most likely your resulting image has now more colors
than the original indexed image.
It would work in case of simplest resizing algorithms. So either use
such, or you'll have to run color-reducing algorithm, then build new
palette and assemble new bitmap indexed bitmap.