"Invalid backend response. Data is not JSON" while uploading a file in IE8/9

Uploading a file in IE8/9 results in the error message "Invalid backend response. Data is not JSON" being shown.  

yawd-elfinder correctly handles the html flag sent by elfinder to indicate the response content type must be text/html however the content returned must still be JSON.