stop middleware converting favicon to string

closes #4658

- adds conditional to prevent favicon being processed as a string
Merge pull request #4661 from cobbspur/favicon

stop middleware converting favicon to string