Fixed crash on creating a world during plugin initialisation