Sort of fix return-type mismatch in goToPath:.