Fixed #847: Empty redirect in response may cause uninitialized string offset notice