Optimized pulse reagent checking a little.
Merge pull request #6092 from comma/master

Optimized pulse reagent checking a little.