Fix php strict standard notice
This is a problem with PHP because it sees the output of the SpecialPageFactory::resolveAlias() as a value
and therefore complains when the value is directly passed to array_shift as a reference.
The intermediate variable fixes this.
Merge pull request #4588 from Wikia/MAIN-2791

Fix php strict standard notice