Handle timeout when polling queue: should not call consumers with null.