Fix property call issue
Merge pull request #4731 from edx/ammar/fix-property-call

Fix property call issue
Fixed 404 on courseware when users last visited subsection becomes unpublished.
LMS-6492
Added bok choy test.
Code refactored.