add some test for bug with no class found
xpath() always returns a nodeset, so check if it's empty, not nil
Merge branch 'no-class-crash'