error checking for parseNodeList for null xml