Handled the error raised when the course-list is unavailable.

The CMS is currently down for maintenance. This has raised a situation in which the course-list is unavailable. Have tried to handle this error.