Fix tax rule detection. Closes #3698.

@coenjacobs .15