Check for results before returning in aggregate. Closes #1113.