Fix NPE when #id is after .class in a CSS tag. Closes #22.