BondStateMachine: Check for null before calling getDeviceType

Bug: 128572820
Bug: 79703832
Test: Compilation
Change-Id: I711e08b076adb7b4808d04a47cb067cb95606f96
(cherry picked from commit d1dd037de2a827056f1dcdf119072646430c1e51)
1 file changed