Make sure no fatal error occurs if xml was empty