Fixed: error when running some XML tests with rhino.

This problem causes error in Travis that are not errors with JSC.