fix to broken aiwander logic

My apologize, guys. From the first look I didn't get what that ```paths.pop_back();``` in ```trimAllowedNodes``` for. Now original behaviour is returned.