Improve find by id on Android

The old code used exists() which is expensive because we're finding
the element more than once.