Fix crash when reading request fails