Check if nextVersion is null

Fixes #13.
use Strings.isNullOrEmpty()