Fix call to equals that could never succeed.

Caught by Error Prone.
Bug: 29045331

Change-Id: I5901a3ca06e0cc85620f596cfa4178f5ad61d1a7
(cherry picked from commit edf2f5747b9adc3399b59eb478c94641b1021222)
1 file changed