Guard against $wgOut not existing
UserSaveOptions can be apparently called before $wgOut was
initialized; skip the hook in that case (it's only meant to run
when Special:Preferences or the options API is posted).
Bug: T125151
Change-Id: I9581fd4586d61c66e51eafc1dcaac10631b5bfe1