Make sure tap detector is valid before trying to initialize.

Bug: 25879224
Change-Id: Iefebeec9a0c75fe25d4e2476b797a003670b047a
1 file changed