fixes HTTP 500 error 

fixes HTTP 500 error when requesting raw data of single timeseries