catch AttributeError with old version of celery