courseware/views.py index function position value integer error correction and test

LMS-2844
Merge pull request #4110 from edx/mathewpeterson/invalid_characters_error

courseware/views.py index function position value integer error correction and test