Glad you have it resolved - good thinking. However, if that record in mdl_log is still in the original course, backups of that course might still have issues should you ever need to restore it - ie, the problem is still there waiting. IMHO, fix it now while it's fresh on your mind.
'spirit of sharing', Ken