HUE-1963 [sqoop] minor bug fixes

- It turns out that the window.location.back function seems to be somewhat async.
  Wait for hashchange to update connection.
- Add check for connection when cancelling.