Planning Beyond the Sensing Horizon Using a Learned Context