mediaproxy: always parse To header

(cherry picked from 359db7f8713921042d14beffd83b5b07e40536fe)
mediaproxy: fixed detecting messages without a body

(cherry picked from e4a334eaba6e7f402fd26a9e354428b066fc6835)