Fix missing nullcheck in particle API