Check xml content to avoid null pointer exception