Fix notice due to undefined templatesandbox_preview

Observed on non-template pages

Change-Id: I079553d9ccd2e5c9576ea17b77620b51f32cc443
Merge "Fix notice due to undefined templatesandbox_preview"