fix crash,protect connector() calls
--connector calls must be done only when we are sure that a screen id has already been assigned
BUG: 407128