Add bounds check to sensors direct channel creation
am: 0eb4624b33

Change-Id: I903acbba3c3ca5513b43419246bf277c013a7f8c