When you overwrite a style in this scenario the custom template from the overwritten style is lost after the import of the overwriting style. The original customized template doesn't exist (customized or default) in the first style after the overwrite. Running an upgrade in place to rebuild the master data restores the missing template.
Here are the two styles I used for testing.
style a = customized account.css
style b = customized account_alerts
2 KB Views: 3