Fix ActionDispatch::Request#formats when HTTP_ACCEPT header is empty string
Merge pull request #8977 from Soylent/master

Resovled issue rails#7774