Fix jsbox_sending to dialogues with delivery_class set.

Currently the delivery_class is looked up incorrectly.