check if maxListeners is a number before passing to request.

undefined throws error in node v0.10: TypeError: n must be a positive number