Just return null on InvalidPathException