Check to see if child is truthy before checking for attributes

I have randomly hit errors with a SOAP service where a lookup of an
attribute on an undefined child caused node-soap to blow up. Checking
to see if child is truthy before looking for attributes will prevent
the exception from occurring.