AMBARI-7637. Save overwritten custom stacks before upgrade. (aonishuk)