Fix broken sign out on iPad

Fixes #2359 

cc @aerych