Improves error handling in bootstrap's find.java (fixes #1549)