Fixed XML parser bug when there was no closing bracket for last tag