Check for and replace zero power values before converting to dB