fix possible npe on getElementByTagNameWithUnPluralize #284