mod/hotpot add _get_completion_state function required for course/activity completion