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.