I've sent a pull request to get it fixed, but for now you can change line 587 in control.lua:
if player.connected
to:
if player.connected and (player.opened_gui_type == defines.gui_type.none or player.opened_gui_type == defines.gui_type.entity) then
and it fixes it.