build.gradle: fix Javadoc.failOnError scope