Removed null check for getPath

It never actually returns null