[BUG #7105] Fixed serialization of DOMExceptions in Gecko