grade_get_grade_items_for_activity gets error reading from database where modname is not set