Avoid undefined behavior on goValueActivate.

Updates #19.