Support elements without name attribute

Seems like it should make sure <code>this.name</code> this not <code>""</code> or <code>undefined</code> before adding an item to the <code>rulesCache[]</code>. Otherwise, it will only validate the first element without a name and will skip subsequent elements.