transcode: crash regression in `transcode_encoder_*_test()`

The regression is introduced by 5140b25e. Calling vlc_encoder_destroy() with a NULL ops struct causes a crash due to the ops NULL state not being handled in the destroy method.