Fix themes build script not to overwrite all theme files on every iteration. (#14575)

Change-Id: I58d19f7f5c9e45068b6cc8a7356e41d5d5bce5b6