Fixed an issue with celerybeat container failing to restart (#1004)