Avoid setting error state with valid API key