It seems that the method provides this incorrect result for a while, and then just a second later starts providing the correct result.
Similarly the GetCurrentTaskId method seems to return None for a while, and then eventually starts to return the correct value. I’m not sure if there is some event that occurs that can tell me when those values should be available.