Check if the connection has precell and postcell before adding the
connection to the runtimetree