Initialize ThreadGroup before Thread

Avoids a NPE on Java 8 startup