MDL-42635 Fixed error page

A user friendly error has been built into Moodle, but got hijacked by this print_error. By returning an empty array instead, the user sees the user friendly error instead of the harsh error with only being able to continue to the front page.