Student dashboard is empty when student doesn't enroll in any course.

When user registers on site with CP plugin and theme he'll be redirected to Student Dashboard but since he didn't enroll in any course the page will be empty and it looks like there's something missing there.