Fix support .0 releases.

0 is defined as empty so releases like 7.x-1.0 would cause an exception to be thrown.