fixed NPE on attribute-less element