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