Improve find by id on Android

The old code used exists() which is expensive because we're finding
the element more than once.
Merge pull request #2834 from bootstraponline/fix_id

Improve find by id on Android