Fixed generating solution if USE_RECASTNAVIGATION is OFF