fix(at_client_flutter): prevent dialogs form hanging and improve api key error handling (#1923)