Make checkGradleWrappers null-safe