Fix. some missing attribute on PassThroughEncoder

Fixes #1583.
`Encoder.getScalarNames`  will check encoders on line 163