Fix unwanted interactions with UserPictures plugin

Previous versions will lead to failures if other plugins implementing `ITemplateStreamFilter` are installed and enabled in the Trac site. This pull request will fix those issues .