fix possible NPE for weird devices (reported from a for me unknown brand)

Change-Id: Ibc1ab8b26416929eb097b06f036be5a9e6af7669