Bug 825086: Removing errant free of body parts when encoding fails r=ekr