Update course.php

Added sanity checking for course identifier