Issue #675: Sharing patients with other PhenoTips instances
Fixed a JS bug that prevented logout (from the remote server) from working