Attempted fix for google login issue (#154)

I can't test this locally (can't make the error happen), so we'll see if it works on live. Won't affect anything other than admin login, which is already borked anyway.