Ensure that a widget eligible for postMessage gets transport set before made dirty

There was a problem where newly-added widgets were causing a refresh when they got marked as dirty.