Change NS_MAIN to $wgContentNamespaces.

Per suggestion from helder.wiki, check that the navigation bars
are being added to a namespace in $wgContentNamespaces, instead
of just checking that it's NS_MAIN.

Change-Id: If8c8bb21536ae64765b056fb685ad23b1909c2df