DefaultCodecService: guard against empty lists

If a codec of unknown variety is requested via the getCodec(Class)
method, it fails gracefully instead of throwing a NullPointerException.