Just tried running a quick test, but console commands don't seem to work in F1 mode, so I was unable to engineer a test case. Although while testing I saw the invisible bot problem, so I saved the sim anyway.
I'm a VB programmer, so if the code isn't too confusing I could take a look...