[tooling] Change publish snapshots credentials

The build would fail if user didn't configure OSS JFrog authentication
properties on {user.home}/.gradle/gradle.properties.

This change pass null values to credentials instead of throwing an
exception, failing the build only when publish task is invoked.