libbladeRF: Moved null pointer check (assert()) before dereference