Added validation to check for blank (nested) paths.