gradle: Use BndProject.isOk() to determine whether the project failed

Fixes https://github.com/bndtools/bnd/pull/553

Signed-off-by: BJ Hargrave <bj@bjhargrave.com>