Add a missing null pointer check in the codec config comparison logic

Also, rearange the "if" logic into "else if" so it is more natural.

Bug: 74622467
Test: Manual with A2DP Offload enabled and LDAC Headset
Change-Id: I363c7b1aedf5c33f5cdeb56862385969ea8bde1c
1 file changed