Fixes #8405 - Filter :interfaces_attributes when calculating templates_used