core: Minor bug-fix: Only free path vector, if it contains data