Bug 59806: Warn when template expansion fails

Change-Id: Iab0d9f07174d1978c1d0a9bb73a0a8502cf9925f