Respond to JNI errors around drawing operations

* src/android.c (android_fill_polygon, android_draw_rectangle)
(android_draw_point, android_draw_line, android_lock_bitmap):
Check or clear errors around potential JNI errors; the penalty
incurred to performance is not as significant as was expected.
2 jobs for master in 131 minutes and 37 seconds (queued for 9 seconds)
Status Job ID Name Coverage
  Build Images
failed #75366
build-image-inotify

02:11:37

 
  Normal
skipped #75367
test-src-inotify
 
Name Stage Failure
failed
build-image-inotify Build Images
0bee7e5c2361: Pushed
da1203337cc4: Pushed
unauthorized: HTTP Basic: Access denied
Running after script...
$ test -n "$(docker ps -aq -f name=${test_name})" && docker cp ${test_name}:checkout/test ${test_name}
$ test -n "$(docker ps -aq -f name=${test_name})" && docker rm ${test_name}
$ find ${test_name} ! \( -name "*.log" -o -name ${EMACS_TEST_JUNIT_REPORT} \) -type f -delete
find: build-image-inotify-963ccc05: No such file or directory
ERROR: Job failed: exit code 1