Fixed bug in the test for WebKit-versions that didn't throw error for objects with a toString method