Fixes issue when API response is null