Fixing an NPE caused by the fact that not all mines have paths