[fix] Check for the existence of `primus.transformer` before removing its listeners