Use self.xmodule_runtime instead of self.runtime

In XBlocks, self.runtime shouldn't be used. There is no anonymous_student_id in it, for example. self.xmodule_runtime is what you are looking for.