If the api key isn't null,but empty,don't connect.