Fix a potential NPE when receiving plugin items.