Use `nil' for timeout instead of -1

-1 is deprecated in the rest-client after [1].

  [1] https://github.com/rest-client/rest-client/pull/128