Fix for only having classnames with no elements.

Fixes an issue where parsing would fail with the error `XPath error : Invalid expression` if only a classname was used. For example, it would fail when using `.date` instead of, say, `div.date`.