added condition to avoid NullPointerException

course can become null and so NullPointerException will be thrown before
EntityDoesNotExistException is thrown
added test cases for better coverage
Merge branch 'master' into Issue1885
[1885] Clean up InstructorFeedbacksPageAction

fixes #1885