Fix issue #2228

Fixes the bug where the wrong result is returned when a chain
contains a chord as the penultimate task.
https://github.com/celery/celery/issues/2228