Fix. some missing attribute on PassThroughEncoder

Fixes #1583.
Thanks guys, this is fine for now. We should really fix these things since a class shouldn't be initializing variables for a superclass and this particular variable probably doesn't belong in the base class at all (most encoders don't have encoders) but this was apparently a necessary stop gap measure.