Stability of thin polymer films on a corrugated substrate