Added checks for possible NPE in ::RenderSilence() and ::RenderAudio()
Changed format negotiation to calculate the apply depth before checking bit streaming

It was possible that on audio format boundaries WASAPI render's audio format was
outside the rendering thread. This could lead to crash while WASAPI device's data
buffer was not valid when it was accessed.