Occurs regardless of whether it is placed via robot or player.
In my case, I'm placing Bob's large charging pads, but it might also affect other roboport-like entities.
Relevant text from log:
Error MainLoop.cpp:788: Exception at tick 11455302: Error while running event on_built_entity (ID 6)
Expected LuaPlayer, index, or name.
stack traceback:
SmarterBotRecharge/control.lua:52: in function <SmarterBotRecharge/control.lua:37>