Fixed 404 on courseware when users last visited subsection becomes unpublished.

"Page not found" if student visits courseware after the section they visited becomes unpublished.
LMS-6492
I used time.sleep() here because no change is happening on the page after saving new release date for which i can wait for to be visible or something else.