Added tweets!==null on line 244

Check it tweets not null.