Add try clause to catch AttributeError when running tests for dtd2po