MDL-47162 badges: site & profile badges do not have courseid