DAR-1337 | Performance - Improve WikiaView::buildTemplatePath method

https://wikia-inc.atlassian.net/browse/DAR-1719
Now we use global variable instead of copying this variable on each function call.
Measured improvement: https://wikia-inc.atlassian.net/browse/DAR-1933