Fixed crash when referencing an invalid path.