Fixed Jetpack ID sync on REST

Added an extra check for `dotComID` before using REST, and enabled
Jetpack REST for internal builds again

Fixes #2705