Fixing startingDate and endDate propagation

Hello, 

since the introduction of date range selection, it seems that data retrieval for charting no longer work. This because the $gt and $lt arguments are globallly added to query even if not specified. 

This commits add a check and also propagate ranges when retrieving perfs data for charting.

Hope it helps,
--
Laurent