Fixed bug in api-get-time-series. The original code would throw a missing url parameters error, even if all parameters were supplied.