MDL-10813 - Course requests not respecting course request category.
MDL-10813 - Course requests not respecting course request category.

Also made the course request category more robust, as breakage would
incur if $CFG->defaultrequestcategory didn't exist as a category.
merged from MOODLE_19_STABLE

dilawar/moodle