Hotfix, pathing crash if no path defined

Deerrrrp, I failed to make this simple check when testing the pathing.