Update - fix for Server Error 500

Only real courses should be able to use this tool. Non-numeric course instance id will be displayed a message that the course is not properly configured with a valid course record.  
Updated test cases, see latest