MDL-46613 grades ws: Fixed external function declaration

Gradebook items with overridden grades was causing error as Web
Services response

coding style