Fixing a bug where sheep with no where to go crash.