Fix WMS Time functionnality, so preventing DOS situation of big range. (#4524)