Enable Jetpack REST for debug/internal builds only

fixes #2258
Nitpicky: Bracket on the next line.