fixes #472 so we get an informative error dialog if we cannot connect over Ajax