Iterates swift response earlier to get the correct status

We must iterate the next middleware app until we get a response
before asking for the headers and status.

Closes-bug: #1326250

Change-Id: I8947bc88754db93e3ebe01ea864c4b489d1bd870
(cherry picked from commit 163710cb1abc602b15d2a3b49aa52f3f7c84a65a)
Merge "Iterates swift response earlier to get the correct status" into stable/icehouse