Fix particles with data throwing an NPE. Fixes #241