background worker change

wrapped the background workers push to redis in an if, so if the data is null it wont happen.