Performance improvement: Fix for https://issues.apache.org/jira/browse/STORM-585

Hello, this fix helped us gain a sizable amount of performances in none:grouping.
Details are in JIRA https://issues.apache.org/jira/browse/STORM-585
Thanks a lot for your help :-)