Small off by one error. If the array is of size 144, then an index of 144 inclusive is an error.
This condition should NEVER be hit, but in case the started thread is unable to locate itself in the EVENT_DISOATCH_QUEUE_THREADS array, it's best to return null here and kill the unexpected event thread rather than segfault FS by writing outside of the bounds of the EVENT_DISPATCH_QUEUE_RUNNING array.
Cleaning up logically dead code.
It's been missing a break there for ~4 years and instead using the 8k max_ms values(the ptime_div value is the same).