Fixed crash with empty xml file