Fix error when the Redis is empty

When doing long polling, the result of "redis.lrange" could be empty.
Current if condition didn't check that if it's empty or not, hence it would generate a lot of errors for a newly established site.