Diagnose versions ending in a delimiter

Diagnose invalid versions such as '1.', '1.7.', and '1.7.0_'.

[#50968093]
Merge 50968093- to master

[Completes #50968093]