celery/celery — pull request #2349 by kristaps (2014-10-31 10:03:34+00:00)
Title: Make sure app references same object

If app is set and current_app is not, this function will fail due to the reference to app in the trace_task call. This duplicates the behaviour in master.