endSessionDialog: Fix syntax error

That's what I get for not testing my changes before I push :(