The spec editor went to the trouble of [clarifying that itemprops without names shouldn't be added](http://html5.org/tools/web-apps-tracker?from=6853&to=6854), so this code should ensure that they aren't returned.