Ensure an error isn't thrown when trying to log in the JS SSE transport

#2538