Error handling for empty sex and age elements.