Defocusing of null rays in infinite derivative gravity