CLC-3576 Fix logout on machines where dev login mode is enabled

https://jira.ets.berkeley.edu/jira/browse/CLC-3576