I got stuck in this mode recently, coupled with the comments here I was able to get a solution.
The Solution: I entered into safe mode (power button and hold shift under the apple logo comes up) and updated my Mac fully, restarted it. Although it got me back to the wifi page after it restarted when I connected to the wifi and updated, it was fixed.