xbadpcm: fix crash on invalid input file

If the sample rate or channel count is zero on a file opened with
ADPCMDll, a division by zero is performed causing XBMC to crash.

Fix that by adding the necessary check.