Fixup undefined $stores in if like renamewiki does it