Fixed refresh after invalid CSRF has been received (#11635)

Change-Id: I10648c5b375efc09d3d20ffe0a620ddf01675bc1