Avoid NullPointerException when no current course is selected