Destructive Wrath reads as follows: "When you roll thunder or lightning damage, you can use your channel divinity to deal maximum damage instead."

It asks BEFORE the to hit roll is made so if you miss your attack the use of channel divinity is lost. As you don't roll damage of any variety unless the attack lands, this is clearly not working properly.