Updated wayfinder.class.php

Moved initialization of return value to outside conditional loop.