Allow brew log on deleted formulae.

Closes #19995.