MDL-12858 fix print_error() usage.
MDL-12858 fix print_error() usage.

print_error()'s third parameter is the URL we jump to (defaults to
$CFG->wwwroot if not set) when we click the 'Continue' button, not the message
string parameter object.

Forward ported from MOODLE_18_STABLE

dilawar/moodle