Fix javascript errors when drag/dropping all day events in daily/weekly views.