Fix ThemeChangeOnTheFlyTest to work with autogenerated style. (#14670)

Change-Id: Iac7800a97e7263b51032579bd6ab0de9a95d59f8