How could they have arrived in Dhaka, Wouldn't they need a Bangladeshi visa before boarding? If they did have the visa then they did know they were going to Dhaka isntead of Dakar.
US Citizens can get a 30-day visa on arrival in Bangladesh, so the lack of visa endorsed in their passports would not be something that would have prevented their embarkation.