Set a content/type on empty response to prevent "no element found" error in Firefox