First call to getClient('someendpoint') threw a notice, fixed it