Fix code scanning alert - Potentially uninitialized local variable
`spec_target_len` and `spec_target` will not be assigned if `audio is None`. 

<!-- Warning: The suggested title contains the alert rule name. This can expose security information. -->

Tracking issue for:
- [x] https://github.com/NVIDIA/NeMo/security/code-scanning/885
