Fix passthrough rule that may duplicate extension when routing items

This pull request implements a possible fix for #243