fix get_case_parent_xpath to accept empty string