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
why?