LPS-35198 Prevent NPE when setting startDate and endDate params in the request