[TIMOB-15278] Ensure we get the templates back after view detaches