Shift fiddling with `ModulesSelectedOrder` and Exam Timetable outside `add-module-lesson-group!`

In preparation for adding modules without any lessons to
`document.location.hash`.

Signed-off-by: Pang Yan Han <pangyanhan@gmail.com>