Add wait_for_server() before sending navigation goal to prevent race condition