[#2137201] Only recalculate version components if changed.
Fix fatal error.