Fixing a segmentation fault when storing plugin metadata.