This looks like a very strange bug in the STF tool, which I cannot reproduce. I'll investigate it further, since the API error gives some hints that I can follow. If you can provide a reproducible case, that would be of great help.
Let me know if you get one of these errors again.