erp5_web_js_style: use effective_date as document published date

Fallback to modification_date if a document does not have an effective_date.
6 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds