handle call to #map on nil in Client