Cache a variable locally before it is reset on the instance

storeGlobalData calls resetState, which unsets $this->mHomeWiki

Bug: 46301
Change-Id: Idf690c76a1f65066c75851a9c7ae420021d289b6
Merge "Cache a variable locally before it is reset on the instance"