Unbreak token fetching for anonymous users

Current code was not checking the value of $wgMFAnonymousEditing

Bug: 56831
Change-Id: Ibbe6cf7f3e8ee892beea11abfa33858fa2c3e393
Merge "Unbreak token fetching for anonymous users"