Abort visualization query upon error response

- This fix prevents the query from periodically re-sending (if a refreshInterval value is > 0 ) when the query response returns an error.
- Also setting a default value for refreshInterval in case it was not provided in the opts param object