Author: David Monllao
MDL-58859 analytics: No enddate update if wrong guess
Part of MDL-57791 epic.
http://git.moodle.org/gw?p=moodle.git;a=commit;h=d2cdaf68ae1bcf7a72b92d22f8e8fa405580e571
http://github.com/moodle/moodle/commit/d2cdaf68ae1bcf7a72b92d22f8e8fa405580e571
+ 3.4 en [errorendbeforestart,analytics]