Removed "No path found" while/if loop

The code that was removed was unstable and caused a plethora of Stack
overflow errors.