Use Platform.isFxApplicationThread instead of comparing thread names