fixes issue 49 (Cannot read property 'public_url' of null)