Prevent NullPointerException in StreamingResponse

See #404