Only activate page contexts on node page.

From #2234.