Check if nextVersion is null

Fixes #13.
Do you really want to consider "   " as non-empty string?