libbladeRF: Fixed dereferences before NULL checks

Resolves CIDs 1195477 and 1195478
libbladeRF: Removed dead code (addresses CID 1195476)