Fix NPE in Like.java (#10167)

Change-Id: I041fbc5c3cda08d3cf3453cefc5f044c63dbe9bb