A foster carer has died in a Queensland hospital after being left waiting three hours in one of 13 ambulances lined up at the emergency department.