fixed a merge bug for the IDA RPC server

Fixed a critical bug that would make the in-IDA server close the
idalink RPC endpoint immediately after creating it.