Fix issue in BukkitConvertor.runOnMainThreadAndWait().