Fix accessing `templateAdapter` in `BaseApp#initialize`.