MDL-38768 code area: correcting moodle docs link

The patch aims to correct the moodle docs link when the user views the
profile of a user for a particular course. The pagetype is set to the
particular course the user is currently viewing, so we have to use the
set_docs_path function to change the Moodle help docs link.