Fixed crashing where no safe path exists to mine