Fixed #847: Empty redirect in response may cause uninitialized string offset notice
merge e293a4a9067356ffa09a0749aa03d01f3d9fe3e3...24b430a81059be89060ddb8f5b92e936c8b3baeb (from 0.11)